<%= form_for(@staff_role) do |f| %>
  <% if @staff_role.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@staff_role.errors.count, "error") %> prohibited this staff_role from being saved:</h2>

      <ul>
      <% @staff_role.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :label %><br>
    <%= f.text_field :label %>
  </div>
  <div class="field">
    <%= f.label :code %><br>
    <%= f.text_field :code %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
